import request from '@/utils/request'

// 查询条形码库列表
export function listBarcodeLibrary(query) {
  return request({
    url: '/business/barcodeLibrary/list',
    method: 'get',
    params: query
  })
}

// 查询条形码库所有列表
export function listAllBarcodeLibrary(query) {
  return request({
    url: '/business/barcodeLibrary/listAll',
    method: 'get',
    params: query
  })
}

// 查询条形码库详细
export function getBarcodeLibrary(id) {
  return request({
    url: '/business/barcodeLibrary/getInfo/' + id,
    method: 'get'
  })
}

// 新增条形码库
export function addBarcodeLibrary(data) {
  return request({
    url: '/business/barcodeLibrary/add',
    method: 'post',
    data: data
  })
}

// 修改条形码库
export function updateBarcodeLibrary(data) {
  return request({
    url: '/business/barcodeLibrary/edit',
    method: 'post',
    data: data
  })
}

// 删除条形码库
export function delBarcodeLibrary(id) {
  return request({
    url: '/business/barcodeLibrary/remove/' + id,
    method: 'get'
  })
}
